When a CD has been read completely, it is automatically ejected from the drive. When in daemon mode, cdsend will then wait for a new CD to be inserted. If a CD that is not an audio CD is inserted, it is ignored. This means that cdsend does not have to be killed when the CD-ROM drive has to be used for software installations. Daemon mode is selected by using the -d flag.
Optionally, cdsend will play the unconverted sound through the audio interface. This can be enabled using the -p option or by sending a SIGHUP to cdsend.
Cdsend writes information that identifies the CD being read to a file. The name of the file is $HOME/.CDcatalognumber, unless another file is specified using the -c flag. The information written consists of three lines. All lines are of the form identifier=value. The first line is the result of a hash function on the CD's table of contents. This is the same value that is used by cdman(1) to generate a file name for the title of the CD. The second line is the table of contents. The table of contents is encoded in the way that cdplayer(1) and cdman(1) use. The third line is either the catalog number on the CD (if present) or the total playing time of the CD in the format tracks.minutes.seconds.frames.
When the -n flag is present, cdsend will run with a non-degrading priority. The priority chosen is NDPNORMMAX, which is the lowest non-degrading priority higher than the normal user priorities. This option will only have an effect if cdsend is installed set-uid root.
When playing, cdsend can still be influenced. This is done by sending certain signals to the process. The following signals are accepted.
When cdsend stops playing, whether it is because the CD has finished ot because it was sent a SIGHUP, it sets the sampling rate of the audio interface back.
Typically, cdsend is started as follows:
With older broadcast programs you may need to use the following: